package cn.sfrog.project.biz.admin.domain;

import cn.sfrog.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;


@Data
@TableName("biz_message_conversation")
public class BizMessageConversation extends BaseEntity<BizMessageConversation>{

    public static final BizMessageConversation DAO = new BizMessageConversation();

    private static final long serialVersionUID = 1L;


    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;


    /** 发送人id */
    private Long sendUserId;


    /** 接收人id */
    private Long receiveUserId;


    /** 发送人的未读数量 */
    private Integer sendUnreadCount;


    /** 接收人的未读数量 */
    private Integer receiveUnreadCount;


    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;



}
